import request from '@/utils/request'

//1. 查询规格列表
export function findAll() {
  return request({
    url: '/specification/list.do',
    method: 'get',
  })
}
//2. 根据规格id查询组合对象
export function findSpecById(id) {
  return request({
    url: `/specification/findById.do?id=${id}`,
    method: 'get',
  })
}

//3. 保存规格组合对象
export function save(data,url) {
  return request({
    url,
    method: 'post',
    data
  })
}

//4. 删除规格
export function delSpec(id) {
  return request({
    url:`/specification/delete.do?id=${id}`,
    method: 'get',
  })
}
